﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FieldTools.GetGiteeSoftPublish
{
    /// <summary>
    /// 配置实体类
    /// </summary>
    public class Config
    {
        /// <summary>
        /// gitee主页地址
        /// </summary>
        public string? GiteeBasePath { get; set; }
        /// <summary>
        /// gitee开源软件地址
        /// </summary>
        public string? GiteeSoftPath { get; set; }
        /// <summary>
        /// gitee软件主页发行版xml路径
        /// </summary>
        public string? GiteeSoftPublishXPath { get; set; }
        /// <summary>
        /// gitee软件发行版日志xml路径
        /// </summary>
        public string? GiteePublishLogXPath { get; set; }
        /// <summary>
        /// gitee发行版页面下载xml路径
        /// </summary>
        public string? GiteePublishDownloadXPath { get; set; }
        /// <summary>
        /// 是否开启覆盖更新
        /// </summary>
        public bool? IsCover { get; set; }
        /// <summary>
        /// 覆盖路径
        /// </summary>
        public string? CoverPath { get; set; }
        /// <summary>
        /// 白名单文件
        /// </summary>
        public List<string>? WhiteList { get; set; }
        /// <summary>
        /// 序列，当下载了多个文件的时候，指定使用某个。一个开源项目指定平台只会用到一个发行版文件
        /// </summary>
        public int? Order { get; set; }=0;
        /// <summary>
        /// 项目默认导出目录名
        /// </summary>
        public string? ExportDefaultName { get; set; } = "dist";
        /// <summary>
        /// 二级目录名
        /// </summary>
        public string? SecondLevelDirectory { get; set; } = "";
    }
}
